import { get, post } from '../utils/request';

module.exports = {
  index: (keyword) => {
    return post('search', {
      keyword: keyword
    })
  },

  history: () => {
    return get('search/history')
  },

  clear: () => {
    return post('search/clear')
  }
}
